#=========================================================================
#
#  Module Name:
#  w35und.ko Makefile for the ISSC wireless networking driver in linux kernel 2.6.x
#  Port from Original

#  Abstract:
#  Linux 2.6 driver for IS89C35D 802.11 a/b/g Wireless USB
#
#=========================================================================

	KERNELDIR := /lib/modules/$(shell uname -r)/build
	PWD := $(shell pwd)
	WPA_DIR=../wpa

obj-m := w35und.o

w35und-objs := new_wireless.o wbusb.o wb35reg.o wb35rx.o wb35tx.o\
	../bssdbase.o ../ds_tkip.o ../knl.o ../mds.o ../mlme_assoc.o ../mlme_auth.o ../mlmetask.o ../mlmetxrx.o \
	../mto.o ../phy_calibration.o ../reg.o ../roamtask.o ../rxisr.o ../scan_probe.o ../scantask.o \
	../sme_api.o ../smetask.o ../wbhal.o ../wblinux.o \
	$(WPA_DIR)/eap.o $(WPA_DIR)/4Way.o $(WPA_DIR)/Adapter_Bridge.o $(WPA_DIR)/STLFunction.o \
	$(WPA_DIR)/passphrase.o $(WPA_DIR)/prf.o $(WPA_DIR)/rc4.o $(WPA_DIR)/sha1.o $(WPA_DIR)/hmac_sha1.o \
	$(WPA_DIR)/hmac_md5.o $(WPA_DIR)/md5.o $(WPA_DIR)/aes.o $(WPA_DIR)/aes_wrap.o

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

install:
	cp w35und.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
clean:
	rm -f *.o *~ .*.cmd *.ko *.mod.c ../*.o ../*~ ../.*.cmd ../*.ko ../*.mod.c
	rm -f $(WPA_DIR)/*.o $(WPA_DIR)/*~ $(WPA_DIR)/.*.cmd $(WPA_DIR)/*.mod.c 
	rm -rf Module*.symvers .tmp_versions
